/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * <p>Project: javaseapp - Reg1
 * <p>Powered by webrx On 2021-08-06 16:14:25
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class Reg4 {
    public static void main(String[] args) {
        // + 相当于 {1,}
        Pattern p = Pattern.compile("^[a-z]+$", Pattern.CASE_INSENSITIVE);
        String str = "Java";
        Matcher m = p.matcher(str);
        System.out.println(m.matches());


    }
}
